<template>
<view :scroll-y="true" :class="pageClass" :style="pageStyle" v-if="pageReady">
	<moxi-nav :set="navSet"></moxi-nav>
		<view v-for="(list,key) in modData" :class="list.mod_class"  :style="list.css">
		    <moxi-index :list="list"></moxi-index>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[],
				first:true
			}
		},
		onLoad() {
			this.get()
		},
		onShow() {
			if(!this.first){
			
				this.get()
			}
		},
		methods: {
			get(){
				let self = this;
				this.moxiPost('/plugin/mall/index/goods/buy_list',function(data){
					self.dataList = data.data;
					self.first = false;
				})
			}
		}
	}
</script>

<style>

</style>
